package com.example.frame;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;

import androidx.appcompat.app.AppCompatActivity;

import com.example.frame.TY.Tangying;
import com.example.frame.YGZ.Yangguizhong;
import com.example.frame.ZFH.Zhangfenghua;

import butterknife.BindView;
import butterknife.ButterKnife;
import butterknife.OnClick;

public class MainActivity extends AppCompatActivity {

    @BindView(R.id.bu_zfh)
    Button buZfh;
    @BindView(R.id.bu_ygz)
    Button buYgz;
    @BindView(R.id.bu_ty)
    Button buTy;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        ButterKnife.bind(this);
    }
    @OnClick({R.id.bu_zfh, R.id.bu_ygz, R.id.bu_ty})
    public void onViewClicked(View view) {
        switch (view.getId()) {
            case R.id.bu_zfh:
                startActivity(new Intent(MainActivity.this, Zhangfenghua.class));
                break;
            case R.id.bu_ygz:
                startActivity(new Intent(MainActivity.this, Yangguizhong.class));
                break;
            case R.id.bu_ty:
                startActivity(new Intent(MainActivity.this, Tangying.class));
                break;
        }
    }
}
